
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-shezhi"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#font-shezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-wrong"></use>
                    </svg>
                    <div class="name">wrong</div>
                    <div class="fontclass">#font-wrong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-msnui-time"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#font-msnui-time</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-youxiang"></use>
                    </svg>
                    <div class="name">邮箱</div>
                    <div class="fontclass">#font-youxiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-xinlang"></use>
                    </svg>
                    <div class="name">新浪</div>
                    <div class="fontclass">#font-xinlang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-zuobiao"></use>
                    </svg>
                    <div class="name">坐标</div>
                    <div class="fontclass">#font-zuobiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-yidiandiantubiao04"></use>
                    </svg>
                    <div class="name">home</div>
                    <div class="fontclass">#font-yidiandiantubiao04</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-search"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#font-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-18window"></use>
                    </svg>
                    <div class="name">18 window</div>
                    <div class="fontclass">#font-18window</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-baidu"></use>
                    </svg>
                    <div class="name">baidu</div>
                    <div class="fontclass">#font-baidu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-shuaxin"></use>
                    </svg>
                    <div class="name">M-shuaxin</div>
                    <div class="fontclass">#font-shuaxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-weixin"></use>
                    </svg>
                    <div class="name">微信</div>
                    <div class="fontclass">#font-weixin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-iconzhiwei"></use>
                    </svg>
                    <div class="name">icon_zhiwei</div>
                    <div class="fontclass">#font-iconzhiwei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-shoucang"></use>
                    </svg>
                    <div class="name">收藏</div>
                    <div class="fontclass">#font-shoucang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-star_full"></use>
                    </svg>
                    <div class="name">五角星</div>
                    <div class="fontclass">#font-star_full</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-erweima1"></use>
                    </svg>
                    <div class="name">二维码</div>
                    <div class="fontclass">#font-erweima1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-tupian-copy"></use>
                    </svg>
                    <div class="name">图片</div>
                    <div class="fontclass">#font-tupian-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-shouji-copy"></use>
                    </svg>
                    <div class="name">手机</div>
                    <div class="fontclass">#font-shouji-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-weibiao45100847"></use>
                    </svg>
                    <div class="name">home</div>
                    <div class="fontclass">#font-weibiao45100847</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-zhiding"></use>
                    </svg>
                    <div class="name">置顶</div>
                    <div class="fontclass">#font-zhiding</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-erweima"></use>
                    </svg>
                    <div class="name">二维码</div>
                    <div class="fontclass">#font-erweima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-jubao"></use>
                    </svg>
                    <div class="name">举报</div>
                    <div class="fontclass">#font-jubao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-xiaoxi"></use>
                    </svg>
                    <div class="name">消息</div>
                    <div class="fontclass">#font-xiaoxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-gerenfengcai"></use>
                    </svg>
                    <div class="name">个人风采</div>
                    <div class="fontclass">#font-gerenfengcai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-icon-project"></use>
                    </svg>
                    <div class="name">项目管理</div>
                    <div class="fontclass">#font-icon-project</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-ai-user"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#font-ai-user</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-shoucang1"></use>
                    </svg>
                    <div class="name">收藏 (1)</div>
                    <div class="fontclass">#font-shoucang1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-close"></use>
                    </svg>
                    <div class="name">close</div>
                    <div class="fontclass">#font-close</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-weibiaoti519"></use>
                    </svg>
                    <div class="name">暂停</div>
                    <div class="fontclass">#font-weibiaoti519</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-qq"></use>
                    </svg>
                    <div class="name">QQ</div>
                    <div class="fontclass">#font-qq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-admin"></use>
                    </svg>
                    <div class="name">用户星</div>
                    <div class="fontclass">#font-admin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-biaoqian"></use>
                    </svg>
                    <div class="name">标签</div>
                    <div class="fontclass">#font-biaoqian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-zhiwei"></use>
                    </svg>
                    <div class="name">职位</div>
                    <div class="fontclass">#font-zhiwei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-svg45-copy"></use>
                    </svg>
                    <div class="name">通知</div>
                    <div class="fontclass">#font-svg45-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-jiantou"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#font-jiantou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-jianli-copy"></use>
                    </svg>
                    <div class="name">简历</div>
                    <div class="fontclass">#font-jianli-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-fenxiang2"></use>
                    </svg>
                    <div class="name">分享</div>
                    <div class="fontclass">#font-fenxiang2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-suo"></use>
                    </svg>
                    <div class="name">锁</div>
                    <div class="fontclass">#font-suo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-rightarrow"></use>
                    </svg>
                    <div class="name">右箭头</div>
                    <div class="fontclass">#font-rightarrow</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-yaoqingchengyuan"></use>
                    </svg>
                    <div class="name">邀请成员</div>
                    <div class="fontclass">#font-yaoqingchengyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-jilu"></use>
                    </svg>
                    <div class="name">记录</div>
                    <div class="fontclass">#font-jilu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-renshu"></use>
                    </svg>
                    <div class="name">人数</div>
                    <div class="fontclass">#font-renshu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-send"></use>
                    </svg>
                    <div class="name">send</div>
                    <div class="fontclass">#font-send</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-yanjing"></use>
                    </svg>
                    <div class="name">眼睛</div>
                    <div class="fontclass">#font-yanjing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-gongsixinxi"></use>
                    </svg>
                    <div class="name">公司信息</div>
                    <div class="fontclass">#font-gongsixinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-icon-test"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#font-icon-test</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-xueshimao"></use>
                    </svg>
                    <div class="name">学士帽-实</div>
                    <div class="fontclass">#font-xueshimao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-anquanshezhi"></use>
                    </svg>
                    <div class="name">安全设置</div>
                    <div class="fontclass">#font-anquanshezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-qiuzhiyixiang"></use>
                    </svg>
                    <div class="name">求职意向</div>
                    <div class="fontclass">#font-qiuzhiyixiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-bisaihuodong"></use>
                    </svg>
                    <div class="name">比赛活动</div>
                    <div class="fontclass">#font-bisaihuodong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-gongsi"></use>
                    </svg>
                    <div class="name">公司</div>
                    <div class="fontclass">#font-gongsi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-icon-test1"></use>
                    </svg>
                    <div class="name">闹钟</div>
                    <div class="fontclass">#font-icon-test1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-bulletin"></use>
                    </svg>
                    <div class="name">公告</div>
                    <div class="fontclass">#font-bulletin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-tuanduicaozuo"></use>
                    </svg>
                    <div class="name">团队操作</div>
                    <div class="fontclass">#font-tuanduicaozuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-tubiao-"></use>
                    </svg>
                    <div class="name">热点</div>
                    <div class="fontclass">#font-tubiao-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-yonghu"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#font-yonghu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-youjian"></use>
                    </svg>
                    <div class="name">邮件</div>
                    <div class="fontclass">#font-youjian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-xiayibu"></use>
                    </svg>
                    <div class="name">下一步</div>
                    <div class="fontclass">#font-xiayibu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#font-user-list"></use>
                    </svg>
                    <div class="name">用户列表</div>
                    <div class="fontclass">#font-user-list</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#font-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
